LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_ARM_MODE		:= arm
LOCAL_MODULE    	:= pwn
LOCAL_SRC_FILES 	:= pwn.c syscall.S

# for Android 5.0 above
# enable PIE will force dynamic link
LOCAL_CFLAGS 		+= -pie -fPIE
LOCAL_LDFLAGS 		+= -pie -fPIE
#LOCAL_LDLIBS		+= -llog

include $(BUILD_EXECUTABLE)
#include $(call all-makefiles-under,$(LOCAL_PATH))
